package com.cj.dao;

import com.cj.po.Class;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassDao {
    /**
     * 进行分页查询
     */

    //获取总条数
    public Integer totalCount(@Param("c_classid") Integer c_classid,@Param("c_classname") String c_classname,
                              @Param("c_counsellor") String c_counsellor);
    //获取用户列表
    public List<Class> getClassList(@Param("c_classid") Integer c_classid,@Param("c_classname") String c_classname,
                                    @Param("c_counsellor") String c_counsellor,
                                    @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);
    public int deleteClass(Integer c_classid);
    public int addClass(Class cls);
    public int updateClass(Class cls);
    public Class findClassById(Integer c_id);
    public List<Class> getAll();

    public List<Class> findClassStudent(Class cls);
}
